

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class Groups
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.String _GroupNameAR ="";
public System.String GroupNameAR
{
get { return _GroupNameAR;}
set { _GroupNameAR = value;}
}
System.String _GroupNameEN ="";
public System.String GroupNameEN
{
get { return _GroupNameEN;}
set { _GroupNameEN = value;}
}
System.Boolean _SystemGroup =false;
public System.Boolean SystemGroup
{
get { return _SystemGroup;}
set { _SystemGroup = value;}
}
public Groups()
{
}
public Groups(System.String __GroupNameAR,System.String __GroupNameEN,System.Boolean __SystemGroup)
{
_GroupNameAR = __GroupNameAR;
_GroupNameEN = __GroupNameEN;
_SystemGroup = __SystemGroup;
}
public Groups(System.Int64 __ID,System.String __GroupNameAR,System.String __GroupNameEN,System.Boolean __SystemGroup)
{
_ID = __ID;
_GroupNameAR = __GroupNameAR;
_GroupNameEN = __GroupNameEN;
_SystemGroup = __SystemGroup;
}


             public override bool Equals(object obj)
         {
             if (obj is Groups)
             {
                 Groups newObj = (Groups)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
